<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:text name="shopManage"/></title>
<link href="<s:url value="/css/style.css"/>" rel="stylesheet" type="text/css" />
<link href="<s:url value="/css/admin.css"/>" rel="stylesheet" type="text/css" />
<script src="<s:url value="/js/jquery.js"/>" type="text/javascript"></script>
</head>
<body>
<div class="container">
	<div class="title">订单管理</div>
	<div class="content">

		<table class="tab1">
			<thead>
				<tr>
					<td width="5%">序号</td>
					<td>团购名称</td>
					<td>团购城市</td>
					<td>团购数量</td>
					<td width="10%">应付总额</td>
					<td width="10%">是否付款</td>
					<td width="15%">操作</td>
				</tr>
			</thead>
			<tbody class="center">
			<s:if test="orders.size > 0">
				<s:iterator value="orders" var="o" status="status">
					<tr>
						<td><s:property value="#status.count"/></td>
						<td>${tuangou.name}</td>
						<td>${tuangou.city.name}</td>
						<td>${amount / tuangou.currentPrice}</td>
						<td>￥${amount}</td>
						<td><s:if test="pay">
								已付款
							</s:if>
							<s:else>
								未付款
							</s:else>
						</td>
						<td> 
							<s:if test="tuangou.accordType.type == 111">
								<a href="<s:url value='/admin/order/%{id}'/>">查看联系方式</a>
							</s:if>
							<s:else>
								<a href="<s:url value='/admin/order/%{id}'/>">查看物流信息</a>
							</s:else>
						</td>
					</tr>
				</s:iterator>	
			</s:if>
			<s:else>
				<tr>
					<td colspan="7"><s:text name="nodata"/></td>
				</tr>
			</s:else>
			</tbody>
		</table>

		<div class="padding">
			<s:include value="/page/common/page.jsp" />
		</div>

	</div>
</div>
</body>
</html>